
use serde::{Serialize, Deserialize};


#[derive(Serialize, Deserialize, Clone)]  // 必须派生
pub struct ParseResult {
    pub headers: Vec<String>,
    pub new_headers: Vec<String>,
    pub models: Vec<String>,
    pub sqls: Vec<String>,
}

impl ParseResult {
    pub fn new(
        headers: Vec<String>,
        new_headers: Vec<String>,
        models: Vec<String>,
        sqls: Vec<String>,
    ) -> Self {
        Self {
            headers,
            new_headers,
            models,
            sqls,
        }
    }
}